package com.zrf.gulimall.product.feign;

import com.zrf.gulimall.commnon.core.to.SkuReductionTo;
import com.zrf.gulimall.commnon.core.to.SpuBoundTo;
import com.zrf.gulimall.commnon.core.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author zhanrf
 * @Date 2021/12/12 19:07
 */
@FeignClient("service-coupon")
public interface CouponFeignService {

	/**
	 * 调用优惠券服务-保存积分
	 *
	 * @param spuBoundTo 积分信息
	 * @return 响应对象
	 */
	@PostMapping("/coupon/spubounds/save")
	R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

	/**
	 * 调用优惠券服务-商品满减信息
	 *
	 * @param skuReductionTo 满减信息
	 * @return 响应对象
	 */
	@PostMapping("/coupon/skufullreduction/saveinfo")
	R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
